package com.yueshop.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/*
	调用远程服务
	1. 在项目中加入openfeign依赖
	2. 编写一个接口，告诉springcloud中可以使用哪个接口服务
		声明接口中那个方法可以进行调用
	3. 开启远程调用的功能(扫描远程调用的包)
	4. 测试是否成功远程调用了coupon(在MemberController里)
 */

@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = "com.yueshop.member.feign")
public class YueshopMemberApplication {

	public static void main(String[] args) {
		SpringApplication.run(YueshopMemberApplication.class, args);
	}

}
